import { TabHeightService } from '../../service/tab-height.service';
import { Directive, ElementRef } from '@angular/core';

@Directive({
  selector: '[appTabHeight]',
})
export class TabHeightDirective {
  constructor(private tabHeight: TabHeightService, private el: ElementRef) {}
  ngAfterViewInit(): void {
    if (this.el.nativeElement.nodeName === 'APP-SCROLLABLE-TAB') {
      console.log(6666);
      this.tabHeight.getTopTabHeight(this.el);
    }
    if (this.el.nativeElement.nodeName === 'APP-FOOTER') {
      this.tabHeight.getFooterTabHeight(this.el);
    }
  }
}
